<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	pageContext.setAttribute("path", path);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	
	<title>课程设置</title>
<!-- Style Start -->
	<link rel="stylesheet" type="text/css" href="${path }/css/reset.css"/>
	<link rel="stylesheet" type="text/css" href="${path }/css/main.css"/>
	<link rel="stylesheet" type="text/css" href="${path }/js/lhgcalendar/css/demo.css"/>
	<link rel="stylesheet" type="text/css" href="${path }/js/poshytip/tip-skyblue/tip-skyblue.css"/>
<!-- Style End -->

<!-- JS Start-->
	<script type="text/javascript" src="${path }/js/jquery-1.7.1.min.js"></script>
	<!--日期控件 -->
	<script type="text/javascript" src="${path }/js/lhgcalendar/lhgcalendar.min.js"></script>
	<!--弹窗控件 -->
	<script type="text/javascript" src="${path }/js/lhgdialog/lhgdialog.min.js?skin=discuz"></script>
	<script type="text/javascript" src="${path }/js/poshytip/jquery.poshytip.min.js"></script>
	<script type="text/javascript" src="${path }/js/ajax.js"></script>
<!-- JS End-->
</head>

<body>

<input type="hidden" id="path" value="${path }"/>
<input type="hidden" id="id" value="${sc.couId }"/>
<!-- webNav -->
<div class="webNav"> 
	<!--  导航 -->
	  <div class="nav">
	    <ul>
	      <li class="datasheet">课程修改</li>
	    </ul>
	  </div>
  <!--  导航 end --> 
</div>
<!-- webNav end --> 

<!-- webContent -->
<div class="webContent"> 
  
  <!-- 操作 -->
  <div class="btn_area">
    <!--<div class="btn"><span class="export">导出Excel</span></div>-->
    <div class="btn"><span class="add" onclick="upCourse();">修 改</span></div>
    <div class="btn"><span class="exit" onclick="reset();">清 空</span></div>
  </div>
  <!-- 操作 end -->
  
  <!-- 主体内容 -->
  <div class="content">
    <!-- 上方内容 -->
    <div class="tab_content courseSet">
        <!-- 左边 -->
        <div class="class_set_left">
        <div class="small_unit">
            <ul>
              <li class="label">
                <label>年 度</label>
              </li>
              <li>
                <select id="year" name="year">
                  <option value="2012" <c:if test="${sc.year=='2012'}">selected='selected'</c:if>>2012</option>
                  <option value="2013" <c:if test="${sc.year=='2013'}">selected='selected'</c:if>>2013</option>
                </select>
              </li>
            </ul>
          </div>
          
          <div class="small_unit">
            <ul>
              <li class="label">
                <label>年 级</label>
              </li>
              <li>
                <select id="graname">
                  <c:forEach items="${grali}" var="gra">
	               	<option value="${gra.graName}" <c:if test="${sc.graName == gra.graName}">selected='selected'</c:if>> ${gra.graName} </option>
                   </c:forEach>
                </select>
              </li>
            </ul>
          </div>
          <div class="small_unit">
            <ul>
              <li class="label">
                <label>开学时间</label>
              </li>
              <li>
                <input type="text" class="runcode" id="beginTime" value="${sc.beginTime}"/>
              </li>
            </ul>
          </div>
          <div class="small_unit">
            <ul>
              <li class="label">
                <label>课时数</label>
              </li>
              <li>
	            <!--<input type="text" id="claHour"/>-->
				<select id="claHour" name="claHour">
                  <option value="1" <c:if test="${sc.claHour == 1}">selected='selected'</c:if>>1.0课时</option>
                  <option value="1.5" <c:if test="${sc.claHour == 1.5}">selected='selected'</c:if>>1.5课时</option>
                  <option value="2" <c:if test="${sc.claHour == 2}">selected='selected'</c:if>>2.0课时</option>
                </select>
              </li>
            </ul>
          </div>
          <div class="small_unit">
            <ul>
              <li class="label">
                <label>上课次数</label>
              </li>
              <li>
                <input type="text" id="claNum" value="${sc.claNumber}"/>次
              </li>
            </ul>
          </div>
          <div class="small_unit">
            <ul>
              <li class="label">
                <label>上课时间</label>
              </li>
              <li>
                <select id="claTime" name="claTime">
                  <option value="1" <c:if test="${sc.classTime == 1}">selected='selected'</c:if>>1小时</option>
                  <option value="2" <c:if test="${sc.classTime == 2}">selected='selected'</c:if>>2小时</option>
                  <option value="3" <c:if test="${sc.classTime == 3}">selected='selected'</c:if>>3小时</option>
                </select>
              </li>
            </ul>
          </div>
        </div>
        <!-- 左边 end --> 
        
        <!-- 中间 -->
        <div class="class_set_middle">
        <div class="small_unit">
            <ul>
              <li class="label">
                <label>学 期</label>
              </li>
              <li>
                <select id="term">
					<option value="暑假二期" <c:if test="${sc.terName == '暑假二期'}">selected='selected'</c:if>>暑假二期</option>
					<option value="暑假一期" <c:if test="${sc.terName == '暑假一期'}">selected='selected'</c:if>>暑假一期</option>
					<option value="春季" <c:if test="${sc.terName == '春季'}">selected='selected'</c:if>>春季</option>
					<option value="寒假" <c:if test="${sc.terName == '寒假'}">selected='selected'</c:if>>寒假</option>
	                <option value="秋季" <c:if test="${sc.terName == '秋季'}">selected='selected'</c:if>>秋季</option>
                </select>
              </li>
            </ul>
          </div>
          <div class="small_unit">
            <ul>
              <li class="label">
                <label>班级类型</label>
              </li>
              <li>
                <select id="claType">
                  <option value="普通班" <c:if test="${sc.claType == '普通班'}">selected='selected'</c:if>>普通班</option>
                  <option value="仿真班" <c:if test="${sc.claType == '仿真班'}">selected='selected'</c:if>>仿真班</option>
                  <option value="模拟班" <c:if test="${sc.claType == '模拟班'}">selected='selected'</c:if>>模拟班</option>
                  <option value="集训班" <c:if test="${sc.claType == '集训班'}">selected='selected'</c:if>>集训班</option>
                  <option value="冲刺班" <c:if test="${sc.claType == '冲刺班'}">selected='selected'</c:if>>冲刺班</option>
                  <option value="其它班" <c:if test="${sc.claType == '其它班'}">selected='selected'</c:if>>其它班</option>
                </select>
              </li>
            </ul>
          </div>
          
          <div class="small_unit">
            <ul>
              <li class="label">
                <label>结束时间</label>
              </li>
              <li>
                <input type="text" class="runcode" id="endTime" value="${sc.endTime}"/>
              </li>
            </ul>
          </div>
          <div class="small_unit">
            <ul>
              <li class="label">
                <label>书本费</label>
              </li>
              <li>
                <input type="text" id="bookFee" value="${sc.bookFee}"/>元
              </li>
            </ul>
          </div>
          <div class="small_unit">
            <ul>
              <li class="label">
                <label>单课次费用</label>
              </li>
              <li>
                <input type="text" id="perunitFee"/ value="${sc.perunitFee}">元/次
              </li>
            </ul>
          </div>
        </div>
        <!-- 中间 end -->
        
        <!-- 右边 -->
        <div class="class_set_middle">
        <div class="small_unit">
            <ul>
              <li class="label">
                <label>科 目</label>
              </li>
              <li>
                <select id="subject">
                    <option value="语文" <c:if test="${sc.subName == '语文'}">selected='selected'</c:if>>语文</option>
	                <option value="数学" <c:if test="${sc.subName == '数学'}">selected='selected'</c:if>>数学</option>
	                <option value="英语" <c:if test="${sc.subName == '英语'}">selected='selected'</c:if>>英语</option>
	                <option value="科学" <c:if test="${sc.subName == '科学'}">selected='selected'</c:if>>科学</option>
                </select>
              </li>
            </ul>
          </div>
          <div class="small_unit">
            <ul>
              <li class="label">
                <label>课程层次</label>
              </li>
              <li>
                <select id="claLevel">
                  <option value="超常班" <c:if test="${sc.claLevel == '超常班'}">selected='selected'</c:if>>超常班</option>
                  <option value="精英班" <c:if test="${sc.claLevel == '精英班'}">selected='selected'</c:if>>精英班</option>
                  <option value="培优班" <c:if test="${sc.claLevel == '培优班'}">selected='selected'</c:if>>培优班</option>
                  <option value="提高班" <c:if test="${sc.claLevel == '提高班'}">selected='selected'</c:if>>提高班</option>
                  <option value="深中班" <c:if test="${sc.claLevel == '深中班'}">selected='selected'</c:if>>深中班</option>
                  <option value="市外班" <c:if test="${sc.claLevel == '市外班'}">selected='selected'</c:if>>市外班</option>
				  <option value="哈佛班" <c:if test="${sc.claLevel == '哈佛班'}">selected='selected'</c:if>>哈佛班</option>
                </select>
              </li>
            </ul>
          </div>
          <div class="small_unit">
            <ul>
              <li class="label">
                <label>教材版本</label>
              </li>
              <li>
                <select id="bookVersion">
                  <option value="人教版" <c:if test="${sc.bookVersion == '人教版'}">selected='selected'</c:if>>人教版</option>
				  <option value="浙教版" <c:if test="${sc.bookVersion == '浙教版'}">selected='selected'</c:if>>浙教版</option>
				  <option value="苏教版" <c:if test="${sc.bookVersion == '苏教版'}">selected='selected'</c:if>>苏教版</option>
				  <option value="蓝天教材" <c:if test="${sc.bookVersion == '蓝天教材'}">selected='selected'</c:if>>蓝天教材</option>
				  <option value="朗文教材" <c:if test="${sc.bookVersion == '朗文教材'}">selected='selected'</c:if>>朗文教材</option>
				   <option value="北师大版" <c:if test="${sc.bookVersion == '北师大版'}">selected='selected'</c:if>>北师大版</option>
                  <option value="其他教材" <c:if test="${sc.bookVersion == '其他教材'}">selected='selected'</c:if>>其他教材</option>
                </select>
              </li>
            </ul>
          </div>
           <div class="small_unit">
            <ul>
              <li class="label">
                <label>预计招生人数</label>
              </li>
              <li>
                <input type="text" id="predictNum" value="${sc.predictNum}"/>人
              </li>
            </ul>
          </div>
          <div class="small_unit">
            <ul>
              <li class="label">
                <label>总课时费用</label>
              </li>
              <li title="总课时费用不需填写！" class="skyblue">
                <input type="text" id="totalUnitFee" readonly="readonly" value="${sc.claNumber * sc.perunitFee}"/>元
              </li>
            </ul>
          </div>
        </div>
        <!-- 右边 end -->
    </div>
    <!-- 上方内容 end --> 
    <div class="clear"></div>
  </div>
  <!-- 主体内容 end -->
</div>
<!-- webContent end -->
</body>
</html>
